package lab01;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/9/30.
 */
public class Test07 {
    public static void main(String[] args) {
        System.out.println("请输入学生成绩字母");
        Scanner sc = new Scanner(System.in);
        String grade = sc.nextLine();
        if (grade.equals("A")) {
            System.out.println("该同学在85分及其以上");
        } else if (grade.equals("B")) {
            System.out.println("该同学在70分及85分之间");
        } else if (grade.equals("C")) {
            System.out.println("该同学在60分及70分之间");
        } else if (grade.equals("D")) {
            System.out.println("该同学在60分及以下");
        } else {
            System.out.println("输入成绩字母错误");
        }
    }
}
